import java.io.Serializable;
import java.util.LinkedList;

/**
 * This class is StudentList
 */
public class StudentList implements Serializable  {
	/**
	 * StudentList variables
	 */
	private String sID;
	private String lID;
	private int type;
	private String semID;
	/**
	* Constructs an instance of StudentList.
	* @param t
	* @param listID
	* @param studentID
	* @param sem
	*/	
	public StudentList( int t,String listID, String studentID,String sem) {
		
		sID = studentID;
		lID = listID;
		type = t;
		semID = sem;
		
	}
	/**
	* Constructs an instance of StudentList.
	*/	
	public StudentList() {
		// TODO Auto-generated constructor stub
	}
	/**
	 * @return the getSemID
	 */
	public String getSemID() {
		return semID;
	}

	/**
	 * @return the sID
	 */
	public String getsID() {
		return sID;
	}

	/**
	 * @param sID the sID to set
	 */
	public void setsID(String sID) {
		this.sID = sID;
	}

	/**
	 * @return the lID
	 */
	public String getlID() {
		return lID;
	}

	/**
	 * @param lID the lID to set
	 */
	public void setlID(String lID) {
		this.lID = lID;
	}

	/**
	 * @return the type
	 */
	public int getType() {
		return type;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(int type) {
		this.type = type;
	}
	public LinkedList<StudentList> DBgetList(String id){
		SQL s = new SQL(id,42);
		s.accept();
		LinkedList<StudentList> list =(LinkedList<StudentList>)s.getMsg();
		return list;
	}
}
